import store from '@/store'
import useUserStore from '../store/modules/user'
let userStore = useUserStore(store)
export default function isHasButthon(app) {
  app.directive('has', {
    mounted(el: any, options) {
      console.log(el, options)

      if (!userStore.buttons.includes(options.value)) {
        // el.parentNode.removeChild(el);
        el.style.display = 'none'
      }
    },
  })
}
